package com.bleeth.fx.component;

import javafx.scene.control.Accordion;
import javafx.scene.control.Button;
import javafx.scene.control.TitledPane;
import javafx.scene.layout.Region;
import lombok.Builder;


/**
 * @author Sakura
 * @version 1.0
 * @date 2021-11-13 22:17
 **/
@Builder
public class MAccordion {


    public Region make() {
        Accordion accordion = new Accordion();

        TitledPane t1 = new TitledPane();
        t1.setText("haod ");
        t1.setGraphic(MIcon.builder().icon("icon-remove").size(15).build().make());

        accordion.getPanes().add(t1);

        t1.setContent(new Button("111"));

//        StyleHelper.bg(accordion).color("#a4c1dc").make();
        return accordion;
    }


}
